package com.joysuch.wwyt.bp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.util.Date;

import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author heqifeng
 * @since 2022-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_bp_investigate_task_his")
@ApiModel(value="BpInvestigateTaskHis对象", description="")
public class BpInvestigateTaskHis extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "排查计划id")
    private Long planId;

    @ApiModelProperty(value = "排查人员id")
    private Long userId;

    @ApiModelProperty(value = "排查日期")
    private LocalDateTime checkDate;

    @ApiModelProperty("排查结束日期")
    private Date checkEndDate;

    @ApiModelProperty(value = "截至日期")
    private LocalDateTime deadline;

    @ApiModelProperty(value = "数据来源类型")
    private Integer sourceType;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "记录id")
    private Long recordId;

    @ApiModelProperty(value = "周期单位: 日; 月")
    private String periodUnit;

    @ApiModelProperty(value = "日/月 周期设置,eg: 按天 每1天")
    private Integer periodDays;

    @ApiModelProperty(value = "排查频次")
    private String checkRateDescribe;

    @ApiModelProperty(value = "风险区域")
    private Long districtId;

    @ApiModelProperty(value = "风险区域所属部门")
    private Long departId;

    @ApiModelProperty(value = "任务完成时间")
    private Date finishDate;
}
